// 收藏接口
const express = require('express')
// 引入连接池模块
const pool = require('../pool.js')
const router = express.Router()

// 查询收藏
// http://127.0.0.1:3000/sc
router.get('/',(req,res,next) => {
    var obj=req.params
    pool.query('select * from qnls_collect',(err,r) => {
        if(err){
            return next(err)
        }
        res.send({
            code:200,msg:'查询成功',data:r
        })
    })
})


module.exports = router